package com.goldfish666.remote_control.dto.airConditioner;

import com.goldfish666.remote_control.entity.airConditioner.AirConditioner;
import com.goldfish666.remote_control.enums.RunningMode;
import com.tuyang.beanutils.annotation.BeanCopySource;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@BeanCopySource(source = AirConditioner.class)
public class AirConditionerDTO implements Serializable {

    /**
     * 分布式主键
     */
    protected String id;

    /**
     * 设备名称
     */
    private String name;

    /**
     * 密钥，用于绑定设备和人
     */
    private String privacy;

    /**
     * 当前模式
     */
    private RunningMode runningMode;

    /**
     * 制冷状态
     */
    private CoolStateDTO coolState;

    /**
     * 除湿状态
     */
    private DryStateDTO dryState;

    /**
     * 加热状态
     */
    private HeatStateDTO heatState;


    private AirConditionerModelDTO model;
}
